Skip to content

fix: fix flaky tests and add manifest transaction retry#48530

Open
xiaofan-luan wants to merge 3 commits intomilvus-io:masterfrom
xiaofan-luan:fix-timestamptz-flaky-test
Open

fix: fix flaky tests and add manifest transaction retry#48530
xiaofan-luan wants to merge 3 commits intomilvus-io:masterfrom
xiaofan-luan:fix-timestamptz-flaky-test

Conversation

@xiaofan-luan
Copy link
Collaborator

@xiaofan-luan xiaofan-luan commented Mar 26, 2026

Summary

issue: #48500

Test plan

  • Flaky element filter search test uses distinctive vectors to avoid cosine collisions
  • Manifest transaction retry limit is configurable via common.storage.manifestTransactionRetryLimit
  • configs/milvus.yaml regenerated and in sync with paramtable

🤖 Generated with Claude Code

@sre-ci-robot sre-ci-robot added area/test sig/testing approved size/XS Denotes a PR that changes 0-9 lines. labels Mar 26, 2026
@mergify mergify bot added dco-passed DCO check passed. kind/bug Issues or changes related a bug labels Mar 26, 2026
@sre-ci-robot
Copy link
Contributor

[ci-v2-notice]
Notice: New ci-v2 system is enabled for this PR.

To rerun ci-v2 checks, comment with:

  • /ci-rerun-code-check // for ci-v2/code-check
  • /ci-rerun-build // for ci-v2/build
  • /ci-rerun-build-all // for ci-v2/build-all (multi-arch builds)
  • /ci-rerun-buildenv // for ci-v2/build-env (build milvus-env builder images)
  • /ci-rerun-ut-integration // for ci-v2/ut-integration, will rerun ci-v2/build
  • /ci-rerun-ut-go // for ci-v2/ut-go, will rerun ci-v2/build
  • /ci-rerun-ut-cpp // for ci-v2/ut-cpp
  • /ci-rerun-ut // for all ci-v2/ut-integration, ci-v2/ut-go, ci-v2/ut-cpp, will rerun ci-v2/build
  • /ci-rerun-e2e-arm // for ci-v2/e2e-arm
  • /ci-rerun-e2e-default // for ci-v2/e2e-default
  • /ci-rerun-ciloop // for ci-v2/ciloop (build + unit tests in one pipeline)
  • /ci-rerun-gosdk // for ci-v2/go-sdk (Go SDK E2E tests, AMD)
  • /ci-rerun-gosdk-arm // for ci-v2/go-sdk-arm (Go SDK E2E tests, ARM)

If you have any questions or requests, please contact @zhikunyao.

@mergify mergify bot added the ci-passed label Mar 26, 2026
xiaofan-luan and others added 3 commits March 26, 2026 17:22
The test_milvus_client_timestamptz_add_field_with_default_value test was
missing a convert_timestamptz() call to normalize expected timestamp values
before comparison. This caused flaky failures when CI environments had
different tzdata versions or when the server returned timestamps in a
slightly different format. All other timestamptz tests already use this
normalization pattern.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: xiaofanluan <xiaofan.luan@zilliz.com>
Cherry-pick PR milvus-io#48463 (fix flaky element_filter_search test) and
PR milvus-io#48501 (add configurable retry limit for manifest transaction).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: xiaofanluan <xiaofan.luan@zilliz.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: xiaofanluan <xiaofan.luan@zilliz.com>
@xiaofan-luan xiaofan-luan force-pushed the fix-timestamptz-flaky-test branch from 5f0381d to cebd6d7 Compare March 26, 2026 17:30
@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: xiaofan-luan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@xiaofan-luan xiaofan-luan changed the title fix: add missing convert_timestamptz in timestamptz default value test fix: fix flaky tests and add manifest transaction retry Mar 26, 2026
@sre-ci-robot sre-ci-robot added size/M Denotes a PR that changes 30-99 lines. and removed size/XS Denotes a PR that changes 0-9 lines. ci-passed labels Mar 26, 2026
@sre-ci-robot sre-ci-robot added the low-code-coverage add test-label from zhikun, diff coverage > 80% label Mar 26, 2026
@codecov
Copy link

codecov bot commented Mar 26, 2026

Codecov Report

❌ Patch coverage is 73.91304% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.62%. Comparing base (d02e19d) to head (cebd6d7).

Files with missing lines Patch % Lines
internal/storagev2/packed/transaction.go 45.45% 4 Missing and 2 partials ⚠️

❌ Your patch check has failed because the patch coverage (73.91%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #48530      +/-   ##
==========================================
- Coverage   77.66%   77.62%   -0.04%     
==========================================
  Files        2112     2112              
  Lines      351497   351515      +18     
==========================================
- Hits       272978   272876     -102     
- Misses      70201    70296      +95     
- Partials     8318     8343      +25     
Components Coverage Δ
Client 79.25% <ø> (ø)
Core 84.01% <ø> (-0.01%) ⬇️
Go 75.80% <73.91%> (-0.05%) ⬇️
Files with missing lines Coverage Δ
internal/storagev2/packed/manifest_ffi.go 47.90% <100.00%> (ø)
internal/storagev2/packed/packed_writer_ffi.go 69.34% <100.00%> (ø)
pkg/util/paramtable/component_param.go 97.22% <100.00%> (+<0.01%) ⬆️
internal/storagev2/packed/transaction.go 68.00% <45.45%> (-2.22%) ⬇️

... and 40 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mergify mergify bot added the ci-passed label Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved area/test ci-passed dco-passed DCO check passed. kind/bug Issues or changes related a bug low-code-coverage add test-label from zhikun, diff coverage > 80% sig/testing size/M Denotes a PR that changes 30-99 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants